public class BooleanArrayTools {
	public static boolean[][] multiArrayClone(boolean[][] original) {
		boolean[][] clone = new boolean[original.length][];
		for (int i = 0; i < original.length; i++) {
			clone[i] = original[i].clone();
		}
		return clone;
	}
	
	public static boolean equals(boolean[][] b1, boolean[][] b2) {
		if (b1.length != b2.length) {
			return false;
		}
		for (int i = 0; i < b1.length; i++) {
			if (b1[i].length != b2[i].length) {
				return false;
			}
			for (int j = 0; j < b1[i].length; j++) {
				if (b1[i][j] != b2[i][j]) {
					return false;
				}
			}
		}
		return true;
	}
	
	public static int[] firstDif(boolean[][] b1, boolean[][] b2) {
		for (int i = 0; i < b1.length; i++) {
			for (int j = 0; j < b1[i].length; j++) {
				if (b1[j][i] != b2[j][i]) {
					return new int[]{ i, j };
				}
			}
		}
		return null;
	}
}
